Repository navigation
fix(plugin): align marketplace.json with Cursor schema - #2
Merged
Merged
Conversation
Cursor GitHub / Add marketplace install validates .cursor-plugin/marketplace.json with additionalProperties: false on plugin entries. Extra fields (version, author, keywords, logo, category, …) caused the install error. Keep those in plugin.json and reject them in validate-plugin.mjs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Cursor install from GitHub (
Add marketplace→https://github.com/agentstacktech/cursor-plugin) was failing with amarketplace.json/ manifest validation error.Root cause: official Cursor marketplace schema (
cursor/pluginsschemas/marketplace.schema.json) setsadditionalProperties: falseon eachplugins[]entry and allows onlyname,source,description, andminClientVersions. Our repo.cursor-plugin/marketplace.jsonalso hadversion,author,homepage,repository,license,keywords,logo, andcategoryon the AgentStack entry. Cursor rejects that withmarketplace.json schema validation failed: /plugins/0: must NOT have additional properties.Those fields already belong in
plugins/agentstack/.cursor-plugin/plugin.json(where the official plugin schema allows them). Local CI did not catch this becausevalidate-plugin.mjsonly checkedname,source, and path resolution.The latest
Validate pluginruns onmasterwere already green after later CI-only fixes; this PR fixes the install-time schema mismatch that CI was not checking.plugins/agentstack/.cursor-plugin/plugin.jsonversion (0.5.0)plugin.jsonhas URL-onlymcpServers: "./mcp.json"— no Bearer placeholderaudit-cursor-plugin.mjs/sync-plugin-kernel.mjs --checkare monorepo gates (not run in this public repo)Changes
.cursor-plugin/marketplace.jsonplugin entry toname,source,description.metadata.version(0.5.0) andmetadata.pluginRoot(plugins) are unchanged. MCP endpoint remainshttps://agentstack.tech/mcp.category: "Productivity"intoplugins/agentstack/.cursor-plugin/plugin.json.scripts/validate-plugin.mjsto reject extra marketplace root, owner, and plugin-entry fields so CI fails the same way Cursor install does.[0.5.0].Test plan
node scripts/validate-plugin.mjs(exit 0)node scripts/ci-validate.mjs(exit 0; includes hooks contract + intent eval)marketplace.schema.json/plugin.schema.json(additionalProperties+ required fields)node scripts/verify-mcp-surface-e2e.mjsnot required (MCP / auth untouched)How to install in Cursor (after merge)
https://github.com/agentstacktech/cursor-plugin/agentstack-init(Device Code athttps://agentstack.tech/activate)If a previous add failed, remove the broken marketplace/plugin entry first, then add the repo again so Cursor re-reads
marketplace.jsonfrommaster.